package com.project.yuepai.service.Impl;

import com.project.yuepai.dao.AdminMapper;
import com.project.yuepai.model.Admin;
import com.project.yuepai.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService{

    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin checkAdmin(String adminName, String adminPwd) {
//        Admin admin = new Admin();
//        admin.setAdminName(adminName);
//        admin.setAdminPwd(adminPwd);
        return adminMapper.getAdminByNamePWd(adminName,adminPwd);
    }
}
